#ifndef __CLIENT_H__
#define __CLIENT_H__
#include "../../include/myfunc.h"

typedef struct train_s{
    int length;
    char buf[1000];
} train_t;

int sendn(int sockFd, void *buf, int len);
int recvn(int sockFd,void *pstart,int len);             //接收n个字符的数据
int recvFile(int sockFd);
int sendFile(int netFd, char *filename);
int msgprocess(int netFd, train_t * train);
int cmsgdef(char * buf, train_t * train);
int csign_in(int sockFd);
int csign_up(int sockFd);
int login(int sockFd);
void * sendcmd(int sockFd);
int readmd5(char *filename, char * buf);                //读取md5sum命令的结果并写入buf中

#endif